<script setup lang="ts">
import { ref } from "vue";

const dialogVisible = ref(false);

/**
 * 打开
 */
const open = () => {
  dialogVisible.value = true;
};
/**
 * 关闭
 */
const close = () => {
  dialogVisible.value = false;
};

defineExpose({
  open
});
</script>

<template>
  <el-dialog v-model="dialogVisible" title="XML PDF 预览" width="800px" @close="close">
    <div>XML PDF 预览</div>
  </el-dialog>
</template>
